package com.kkang.ch2.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author yongk_liu
 **/
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(EventConfig.class);

        DemoEventPublisher eventPublisher = applicationContext.getBean(DemoEventPublisher.class);
        eventPublisher.publish("卢拉雷");

        applicationContext.close();
    }

}
